package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DtMembersMapper;
import com.ruoyi.system.domain.DtMembers;
import com.ruoyi.system.service.IDtMembersService;

/**
 * 党员实有Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-22
 */
@Service
public class DtMembersServiceImpl implements IDtMembersService 
{
    @Autowired
    private DtMembersMapper dtMembersMapper;

    /**
     * 查询党员实有
     * 
     * @param name 党员实有主键
     * @return 党员实有
     */
    @Override
    public DtMembers selectDtMembersByName(String name)
    {
        return dtMembersMapper.selectDtMembersByName(name);
    }

    /**
     * 查询党员实有列表
     * 
     * @param dtMembers 党员实有
     * @return 党员实有
     */
    @Override
    public List<DtMembers> selectDtMembersList(DtMembers dtMembers)
    {
        return dtMembersMapper.selectDtMembersList(dtMembers);
    }

    /**
     * 新增党员实有
     * 
     * @param dtMembers 党员实有
     * @return 结果
     */
    @Override
    public int insertDtMembers(DtMembers dtMembers)
    {
        return dtMembersMapper.insertDtMembers(dtMembers);
    }

    /**
     * 修改党员实有
     * 
     * @param dtMembers 党员实有
     * @return 结果
     */
    @Override
    public int updateDtMembers(DtMembers dtMembers)
    {
        return dtMembersMapper.updateDtMembers(dtMembers);
    }

    /**
     * 批量删除党员实有
     * 
     * @param names 需要删除的党员实有主键
     * @return 结果
     */
    @Override
    public int deleteDtMembersByNames(String[] names)
    {
        return dtMembersMapper.deleteDtMembersByNames(names);
    }

    /**
     * 删除党员实有信息
     * 
     * @param name 党员实有主键
     * @return 结果
     */
    @Override
    public int deleteDtMembersByName(String name)
    {
        return dtMembersMapper.deleteDtMembersByName(name);
    }
}
